package net.infamily.logic.impl;

import net.infamily.dao.FamilyDao;
import net.infamily.logic.FamilyLogic;
import net.infamily.model.Family;

import com.google.inject.Inject;
import com.google.inject.persist.Transactional;

public class FamilyLogicImpl implements FamilyLogic {
	@Inject
	private FamilyDao familyDao;

	@Override
	@Transactional
	public Family createNewFamily() {
		Family family = new Family();
		family.setName("test");
		familyDao.persist(family);
		return family;
	}
}
